//
//  BaseViewController.swift
//  iOS-Viper-Study
//
//  Created by ROBIN.J.Y.ZHONG on 2023/5/21.
//

import UIKit

class BaseViewController: UIViewController {

    override func viewDidLoad() {
        super.viewDidLoad()
        // 设置状态栏背景色
        UIApplication.statusBarBackgroundColor = .white
        setNeedsStatusBarAppearanceUpdate()
        
        // 设置背景色
        view.backgroundColor = UIColor.globalBgColor

        // 设置默认返回按钮文字
        navigationItem.backBarButtonItem = UIBarButtonItem(title: "返回", style: .plain, target: nil, action: nil)
        
        // 设置导航栏的背景色
        navigationController?.navigationBar.backgroundColor = .white
        
        // 设置布局的延伸边界
        edgesForExtendedLayout = UIRectEdge(rawValue: 0)
    }

}
